package date1128.collection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lu.jdog.util.Resource;

public class BeanTest {
	private static ApplicationContext applicationContext;
	public static void main(String[] args) {
		String xml = Resource.getAssertPath(BeanTest.class,"beans.xml");
		applicationContext = new ClassPathXmlApplicationContext(xml);
		
		Persons persons = applicationContext.getBean("persons",Persons.class);
		System.out.println(persons.toString());
		
	}
}
